package connectfour;

import connectfour.Grid;
import junit.framework.TestCase;

public class testGridAndBlock extends TestCase {
	
	@SuppressWarnings("static-access")
	public void testStructure(){
		
		//tests on Block
		Block block = new Block();
		
		assertTrue(block.block.size() ==6);
		
		block.setRed(1);
		assertTrue(block.getBlockContent(1)==1);
		
		block.setYellow(5);
		assertTrue(block.getBlockContent(5)==2);
		
		//tests on Grid
		Grid grid = new Grid();
		assertTrue(grid.grid.size()==7);
		
		grid.setRed(0,0);
		assertTrue(grid.getContent(0,0)==1);
		
		grid.setYellow(1,2);
		assertTrue(grid.getContent(1,2)==2);
	}

}
